import request from '@/utils/request'

// 查询地区信息列表
export function listIwebshopAreas(query) {
  return request({
    url: '/system/iwebshopAreas/list',
    method: 'get',
    params: query
  })
}

// 查询地区信息详细
export function getIwebshopAreas(areaId) {
  return request({
    url: '/system/iwebshopAreas/' + areaId,
    method: 'get'
  })
}

// 新增地区信息
export function addIwebshopAreas(data) {
  return request({
    url: '/system/iwebshopAreas',
    method: 'post',
    data: data
  })
}

// 修改地区信息
export function updateIwebshopAreas(data) {
  return request({
    url: '/system/iwebshopAreas',
    method: 'put',
    data: data
  })
}

// 删除地区信息
export function delIwebshopAreas(areaId) {
  return request({
    url: '/system/iwebshopAreas/' + areaId,
    method: 'delete'
  })
}

// 逻辑删除地区信息
export function logicDelIwebshopAreas(areaId) {
  return request({
    url: '/system/iwebshopAreas/logicDel/' + areaId,
    method: 'delete'
  })
}


export function listIwebshopAreasParentId() {
  return request({
    url: '/system/iwebshopAreas/listParentId',
    method: 'get'
  })
}
